home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 1.iso / HENSA / MISC / LINEEDIT.ARC / ConfigOpts < prev    next >
Encoding:
Text File  |  1998-01-24  |  1.8 KB  |  66 lines

  1. LineEditor configuration options:
  2.  
  3. From 2.67, CMOS RAM is no longer used.  It's not really a good use of it, and limits the
  4. number of options that I can include.  There's now a config SWI, or you can supply
  5. parameters on start-up:
  6.  
  7. If you start LineEditor using:
  8.  
  9. RMRun LineEditor <buffer size> <flags> <min len> <max len> <cursors>
  10.  
  11. where the parameters are:
  12.  
  13. <buffer size>: Size of history buffer(s) in KBytes (what was *Configure EdSize)
  14.  
  15. <flags word>: Bits set mean:
  16. bit  0: Local history buffers?
  17. bit  1: Add trailing dot when completion is a directory? [Now works with 4DOS style too]
  18. bit  2: Default to overtype mode?
  19. bit  3: Keep duplicate lines in history?
  20. bit  4: Don't do ~ expansion
  21. bit  5: Don't do events (!! !4 !-2 etc)
  22. bit  6: Don't do ^two^three replacement
  23. bit  7: Don't store lines with a leading space or spaces
  24.  
  25. <min len>: Minimum length line to put in history buffer
  26.  
  27. <max len>: Maximum length line to put in history buffer (0 means no maximum)
  28.  
  29. <cursors>: This sets the appearance of the cursor:
  30. byte 0 is the normal cursor
  31. byte 1 is the overtype cursor
  32. Within each byte:
  33. bit 0: 0=> underline 1=> block
  34. bit 1: 0=> flash 1=> steady
  35. The RISC OS default cursor is a flashing underscore (both bits clear).
  36. The default value for <cursors> is &300
  37.  
  38. So for example:
  39.  
  40. RMRun LineEditor 20 2_0010010 2 0 &100
  41.  
  42. Alternatively:
  43.  
  44. SWI LineEditor_SetOptions
  45. with:
  46. R0=<buffer size>
  47. R1=<flags>
  48. R2=<min len>
  49. R3=<max len>
  50. R4=<cursors>
  51.  
  52. SWI LineEditor_ReadInfo:
  53.  
  54. *Provisonal* details (may change):
  55.  
  56.  In: R0 = taskhandle of taskwindow to find info for
  57.  
  58.  Out: R0 = length of line currently being edited in that taskwindow
  59.       R1 = cursor position
  60.  
  61.    or R0 = -2 if taskhandle not a taskwindow LineEditor knows about
  62.            -1 if taskhandle is a taskwindow, but no edit in progress
  63.       R1 may be corrupted
  64.  
  65. Olly
  66.